<?php

class DocumentController extends BaseController {

    private $accessLoginKey      = '{!=:3P4c{S4SQS@';
    private $accessPermissionKey = 'u:75.db}jh{2N=W';

    public function index() {

        $aData = [
            'sPage_Title'       => trans('navigation.document'),
            'sPage_Description' => trans('navigation.document-description'),
            'fileURL'           => Config::get('app.fileSystemURL'),
            'accessLogin'       => 'accessLogin=' . $this->accessLoginKey,
            'accessPermission'  => CNamHoa::checkPermission(Route::currentRouteName(), ['isPost' => true]) ? 'accessPermission=' . $this->accessPermissionKey : null,
        ];

        return View::make("document", $aData);
    }
}
